package com.czxy.pojo.group;

import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author Liuyunqin 17674029449@163.com
 * @date 2018/12/17 18:03
 */
@Data
public class LoginResult extends BaseResult{

    /**
     * token
     */
    @Autowired
    private String token;

    /**
     * 姓名
     */
    private String name;

    public LoginResult(String token, String name) {
        this.token = token;
        this.name = name;
    }

    public LoginResult(Integer errno, String errmsg, Object data,String token,String name) {
        super(errno, errmsg, data);
        this.name=name;
        this.token=token;
    }

    public LoginResult(Integer errno, String errmsg,String token, String name) {
        super(errno, errmsg);
        this.name=name;
        this.token=token;
    }
}
